package com.lucenly.spell.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.lucenly.spell.adapter.BillAdapter
import com.lucenly.spell.adapter.MessageAdapter
import com.lucenly.spell.base.BaseActivity
import com.lucenly.spell.databinding.ActivityMyBillBinding

class MyBillActivity : BaseActivity<ActivityMyBillBinding>() {
    override fun getViewBinding(): ActivityMyBillBinding {
        return ActivityMyBillBinding.inflate(layoutInflater,baseBinding.contentMain,true)
    }

    override fun setTitle(): String {
        return "我的账单"
    }

    override fun initData() {
        var list = arrayListOf<String>()
        for (i in 1..10){
            list.add(""+i)
        }
//        binding.content.setBackgroundColor(color)
        binding.recyclerView.layoutManager = LinearLayoutManager(context)
        val itemAdapter = BillAdapter(list, context)
        binding.recyclerView.adapter = itemAdapter
    }

    override fun initEvent() {
    }

    override fun startObserve() {
    }
}